package com.endi.sap.enums;

import lombok.Data;

public enum UrlEnums {

    CUSTOMER_ADD("CUSTOMER_ADD_URL","https://....."),
    ;

    private String name;

    private String url;

    UrlEnums(String name, String url) {
        this.name = name;
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public static UrlEnums getEnum(String name) {
        for (UrlEnums funModuleEnum : UrlEnums.values()) {
            if (funModuleEnum.name.equals(name)) {
                return funModuleEnum;
            }
        }
        return null;
    }
}
